<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>如何使窗体自适应分辨率java swing_Java_天涯问答</title>
<meta name="keywords" content=" Java">
<meta name="description" content="&nbsp;&lt;span&nbsp;name=&quot;whlm&quot;&nbsp;id=&quot;whlm&quot;&gt;吐血大奉献了&lt;br&nbsp;/&gt;总共两个文件，第一">

<link rel="shortcut icon" href="http://wenda.tianya.cn/images/favicon.ico">
<link rel="stylesheet" type="text/css" href="29ce007bd6e974ee_files/TY.css">
<link rel="stylesheet" type="text/css" href="29ce007bd6e974ee_files/style.css">
<script src="29ce007bd6e974ee_files/ga.js" async="" type="text/javascript"></script><script type="text/javascript" charset="utf-8" src="29ce007bd6e974ee_files/TY_002.js"></script><script charset="utf-8" src="29ce007bd6e974ee_files/refresh.htm"></script>
<script type="text/javascript" src="29ce007bd6e974ee_files/tywenda.js"></script>
<script type="text/javascript" charset="utf-8" src="29ce007bd6e974ee_files/stat_20080313.js"></script><img src="29ce007bd6e974ee_files/clickAnalyse.htm" height="0" width="0"><img src="29ce007bd6e974ee_files/guid.htm" height="0" width="0">
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-23887046-5']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script> 

<script type="text/javascript" src="29ce007bd6e974ee_files/edit.js"></script>
<!-- base href="http://wenda.tianya.cn/" -->
<script async="" src="29ce007bd6e974ee_files/interface.js" charset="utf-8" type="text/javascript"></script><link href="29ce007bd6e974ee_files/TY_002.css" rel="stylesheet" charset="utf-8" type="text/css"><script async="" src="29ce007bd6e974ee_files/TY.js" charset="utf-8" type="text/javascript"></script><script async="" src="29ce007bd6e974ee_files/textChange.js" charset="utf-8" type="text/javascript"></script><script async="" src="29ce007bd6e974ee_files/TY_003.js" charset="utf-8" type="text/javascript"></script></head>
<body><div id="top_nav_wrap" style="width:950px;"><div id="top_nav" class="clearfix" style=""><div class="top-nav-logo"><a href="http://focus.tianya.cn/" _tystat="新版顶导航/Logo"></a></div><div class="top-nav-main clearfix"><div class="top-nav-menu clearfix"><div class="top-nav-fl clearfix"><ul class="top-nav-menu-list clearfix"><li class="top-nav-menu-li top-nav-menu-li-first"><a href="http://bbs.tianya.cn/" class="top-nav-main-menu" appstr="bbs" _checklocation="1" _tystat="新版顶导航/论坛">论坛</a></li><li class="top-nav-menu-li"><a href="http://blog.tianya.cn/" class="top-nav-main-menu" appstr="blog" _checklocation="1" _tystat="新版顶导航/博客">博客</a></li><li class="top-nav-menu-li"><a href="http://groups.tianya.cn/" class="top-nav-main-menu" appstr="laiba" _checklocation="1" _tystat="新版顶导航/部落">部落</a></li><li class="top-nav-menu-li"><a href="http://wenda.tianya.cn/" class="top-nav-main-menu  on" appstr="wenda" _checklocation="1" _tystat="新版顶导航/问答">问答</a></li><li class="top-nav-menu-li"><a href="http://game.tianya.cn/" class="top-nav-main-menu" appstr="game" _checklocation="1" _tystat="新版顶导航/游戏">游戏厅</a></li><li class="top-nav-menu-li"><a href="http://travel.tianya.cn/" class="top-nav-main-menu" appstr="travel" _checklocation="1" _tystat="新版顶导航/天涯客">天涯客</a></li><li class="top-nav-menu-li"><a href="http://ebook.tianya.cn/" class="top-nav-main-menu" appstr="ebook" _checklocation="1" _tystat="新版顶导航/读书">读书</a></li><li class="top-nav-menu-li"><div id="top_nav_menu_more_view" class="more-view"><ul class="link-list clearfix"><li><a href="http://pinpai.tianya.cn/" _tystat="新版顶导航/品牌">品牌</a></li><li><a href="http://apps.tianya.cn/" _tystat="新版顶导航/应用">应用</a></li><li><a href="http://mall.tianya.cn/" _tystat="新版顶导航/购物街">购物街</a></li><li class="li-border-btm"><a href="http://shangjia.tianya.cn/" _tystat="新版顶导航/天涯商家">天涯商家</a></li><li><a href="http://pay.tianya.cn/" _tystat="新版顶导航/充值中心">充值中心</a></li><li><a href="http://apps.tianya.cn/gift" _tystat="新版顶导航/社区商店">社区商店</a></li><li><a href="http://2000.bbs.tianya.cn/djmanage/djpage.asp?djid=12107" _tystat="新版顶导航/实物换礼">实物换礼</a></li><li><a href="http://apps.tianya.cn/event" _tystat="新版顶导航/天涯活动">天涯活动</a></li></ul></div><span id="top_nav_menu_more" class="top-ico-bg top-nav-main-menu">更多</span></li></ul></div><div id="top_search" class="top-nav-fr top-search"><div class="clearfix"><form id="top_search_form" action="http://www.tianya.cn/search/bbs" method="get"><input id="top_search_submit_btn" class="top-search-submit" value="" type="button"><input bindcursor="true" id="top_search_key" name="q" class="top-search-key off" value="搜帖、找人、搜版块" autocomplete="off" type="text"></form></div><div id="top_search_type" class="top-search-type"><ul><li><a id="search-text" href="javascript:void(0);">含有<strong>?</strong>的内容&gt;&gt;</a></li><li><a id="search-user" href="javascript:void(0);">名为<strong>?</strong>的人&gt;&gt;</a></li><li class="clearfix"><dl class="forum-list"><dt>含有<strong>?</strong>的版块&gt;&gt;</dt></dl></li><li><a id="search-tab" href="javascript:void(0);">去<strong>?</strong>的标签&gt;&gt;</a></li></ul></div></div><div id="top_user_menu" class="top-nav-fr"><ul class="top-nav-menu-list clearfix"><li class="top-nav-menu-li top-nav-menu-li-first"><a href="http://www.tianya.cn/mobile/" class="white" _checklocation="1" appstr="mobile" _tystat="新版顶导航/手机">手机</a></li><li class="top-nav-menu-li"><a href="http://service.tianya.cn/index.do" _tystat="新版顶导航/服务">服务</a></li><li class="top-nav-menu-li"><a id="js_login" href="javascript:void(0);" rel="nofollow" _tystat="新版顶导航/登录">登录</a></li><li class="top-nav-menu-li"><a href="http://passport.tianya.cn/register/default.jsp?sourceURL=http%3A%2F%2Fwenda.tianya.cn%2Fquestion%2F29ce007bd6e974ee" target="_blank" rel="nofollow" _tystat="新版顶导航/注册">注册</a></li></ul></div></div><div class="top-nav-separated"></div><div class="top-nav-links clearfix"><div class="top-nav-fl"><ul class="top-nav-menu-list clearfix"><li class="top-nav-menu-li top-nav-menu-li-first"><a href="http://focus.tianya.cn/" appstr="focus" _checklocation="1" _tystat="新版顶导航/分社区/聚焦">聚焦</a></li><li class="top-nav-menu-li"><a href="http://news.tianya.cn/" appstr="news" _checklocation="1" _tystat="新版顶导航/分社区/民生">民生</a></li><li class="top-nav-menu-li"><a href="http://cul.tianya.cn/" appstr="cul" _checklocation="1" _tystat="新版顶导航/分社区/人文">人文</a></li><li class="top-nav-menu-li"><a href="http://travel.tianya.cn/" appstr="travel" _checklocation="1" _tystat="新版顶导航/分社区/旅游">旅游</a></li><li class="top-nav-menu-li"><a href="http://biz.tianya.cn/" appstr="biz" _checklocation="1" _tystat="新版顶导航/分社区/财经">财经</a></li><li class="top-nav-menu-li"><a href="http://auto.tianya.cn/" appstr="auto" _checklocation="1" _tystat="新版顶导航/分社区/汽车">汽车</a></li><li class="top-nav-menu-li"><a href="http://it.tianya.cn/" appstr="it" _checklocation="1" _tystat="新版顶导航/分社区/IT数码">IT数码</a></li><li class="top-nav-menu-li"><a href="http://fashion.tianya.cn/" appstr="fashion" _checklocation="1" _tystat="新版顶导航/分社区/时尚">时尚</a></li><li class="top-nav-menu-li"><a href="http://emo.tianya.cn/" appstr="emo" _checklocation="1" _tystat="新版顶导航/分社区/情感">情感</a></li><li class="top-nav-menu-li"><a href="http://ent.tianya.cn/" appstr="ent" _checklocation="1" _tystat="新版顶导航/分社区/娱乐">娱乐</a></li><li class="top-nav-menu-li"><a href="http://sports.tianya.cn/" appstr="sports" _checklocation="1" _tystat="新版顶导航/分社区/体育">体育</a></li><li class="top-nav-menu-li"><a href="http://pp.tianya.cn/" appstr="pp" _checklocation="1" _tystat="新版顶导航/分社区/图片">图片</a></li><li class="top-nav-menu-li"><a href="http://video.tianya.cn/" appstr="video" _checklocation="1" _tystat="新版顶导航/分社区/更多/视频">视频</a></li><li class="top-nav-menu-li"><div id="top_nav_community_more_view" class="more-view"><ul class="link-list clearfix"><li><a href="http://xinzhi.tianya.cn/" tystat="新版顶导航/分社区/更多/新知">新知</a></li><li><a href="http://baby.tianya.cn/" _tystat="新版顶导航/分社区/更多/亲子">亲子</a></li><li><a href="http://yuqing.tianya.cn/" _tystat="新版顶导航/分社区/更多/舆情">舆情</a></li><li><a href="http://gongyi.tianya.cn/" _tystat="新版顶导航/分社区/更多/公益">公益</a></li><li><a href="http://star.tianya.cn/" _tystat="新版顶导航/分社区/更多/星工场">星工场</a></li><li><a href="http://media.tianya.cn/" _tystat="新版顶导航/分社区/更多/传媒">传媒</a></li><li><a href="http://2000.bbs.tianya.cn/djmanage/djpage.asp?djid=12237" _tystat="新版顶导航/分社区/更多/换礼">换礼</a></li></ul></div><span id="top_nav_community_more" class="top-ico-bg">更多</span></li></ul></div><div class="top-nav-fr"><ul class="top-nav-menu-list clearfix"><li class="top-nav-menu-li top-nav-menu-li-first"><a href="http://bj.tianya.cn/" appstr="city-bj" _checklocation="1" _tystat="新版顶导航/城市/北京">北京</a></li><li class="top-nav-menu-li"><a href="http://sh.tianya.cn/" _checklocation="1" appstr="city-sh" _tystat="新版顶导航/城市/上海">上海</a></li><li class="top-nav-menu-li"><a href="http://gd.tianya.cn/" _checklocation="1" appstr="city-gd" _tystat="新版顶导航/城市/广东">广东</a></li><li class="top-nav-menu-li"><div id="top_nav_city_all_view" class="more-view"><div id="top_nav_city_item"><div class="clearfix"><dl class="link-list3"><dt><strong></strong>[ <a class="js-bbsCityBack" href="javascript:void(0);">返回查看全部地区</a> ]</dt></dl></div></div><div id="top_nav_city_list"><ul class="link-list2 clearfix"><li class="loading"><img src="29ce007bd6e974ee_files/loading1.gif" align="absmiddle"> 正在加载...</li></ul></div></div><span id="top_nav_city_all" class="top-ico-bg" js-data="null">更多</span></li></ul></div></div></div></div></div>
<div class="wrap">
	<!--bagin header-->
	<!--bagin header-->
<div class="header clearfix">
    <div class="logo">
        <a href="http://wenda.tianya.cn/" title="返回天涯问答首页">
        	<img src="29ce007bd6e974ee_files/logo.jpg" alt="天涯问答" height="68" width="150">
        </a>
    </div>
    <div class="nav">
    	<ul>
            <li><a href="http://wenda.tianya.cn/">首页</a></li>
            
            <li><a href="http://wenda.tianya.cn/tags">标签</a></li>
            <li><a href="http://wenda.tianya.cn/findUsers">找人</a></li>
            <li><a href="http://wenda.tianya.cn/activity">活动</a></li>
            <li class="s2"><a href="http://wenda.tianya.cn/ask">我要提问</a></li>
        </ul>
    </div>
</div>
<!--end header-->
    <!--end header-->
    
	<dl class="notLogin">
		<dd class="fr">
			<a href="javascript:void(0);" onclick="location='http://passport.tianya.cn/register/default.jsp?sourceURL=' + encodeURIComponent(window.location.href)" class="regLink">快速注册天涯账号</a>
			<p>已有天涯账号？<a href="javascript:void(0);" onclick="MenuUtil.login('社区登录',window.location.href,window.location.href)">登陆</a></p>
		</dd>
		<dt>这里是<a href="http://wenda.tianya.cn/user/26907931" target="_blank">linanlolly</a>所提的问题，您需要登录才能参与回答。</dt>
		<dd>"天涯问答"是天涯社区旗下的问题分享平台。在这里您可以提问，回答感兴趣的问题，分享知识和经历，无论您在何时何地上线都可以访问，此平台完全免费，而且注册非常简单。 </dd>
	</dl>
	
	<div class="content clearfix">
		<div class="w660 fl">
			<h1 class="questionH1" topicid="29ce007bd6e974ee">如何使窗体自适应分辨率java swing</h1>
			<div class="questionShow">
			 我想让分辨率更改的同时更改窗体的显示效果以及窗体中控件位置和大小。谢谢各位先 
			</div>
			<div class="questionInfo">
				<div class="questionFrom">
					<div class="tags fl">
						 <a class="tag" id="hover" rel="tag_pop" labelid="76d0ed187f9aacd3" title="Java" href="http://wenda.tianya.cn/tag/76d0ed187f9aacd3">Java</a> 
					</div>
					
						
						
					
					09-12-14 &nbsp;<a target="_blank" id="hover" title="普通用户" href="http://wenda.tianya.cn/user/26907931" rel="user_pop" _data="26907931" class="user-name ">linanlolly</a> 发布
				</div>
				
			</div>
			
			<div class="s1Tit">
				<b>1个回答</b>
				
			 	
			 	
				<dl class="topAct">
					<dd class="topTime"><a href="http://wenda.tianya.cn/question/29ce007bd6e974ee?sort=t">时间</a></dd>
					<dd class="topVote"><a href="http://wenda.tianya.cn/question/29ce007bd6e974ee?sort=v" class="on">投票</a></dd>
				</dl>
			</div>
			
				<div class="sideBox"><a href="http://wenda.tianya.cn/expert.jsp?activityId=17vokpe2ui7bmr2bb39nimoj3vsk0r1ud0ju7" target="_blank"><img src="29ce007bd6e974ee_files/150976214.jpg"></a></div>
							
			<ul class="answerItem">
				
				
				<li class="">
					
					<div class="leftMenu">
						<a href="javascript:void(0)" class="yes" topicid="29ce007bd6e974ee" followupid="29ce007bd6e974ee00047aabcbfcf6f9"></a>
						<a href="javascript:void(0)" class="no" topicid="29ce007bd6e974ee" followupid="29ce007bd6e974ee00047aabcbfcf6f9"></a>
					</div>
					
					<a href="http://wenda.tianya.cn/user/22733924" target="_blank" class="userFace"><img src="29ce007bd6e974ee_files/22733924.jpeg" height="30" width="30"></a>
					<p><a target="_blank" id="hover" title="中级用户" href="http://wenda.tianya.cn/user/22733924" rel="user_pop" _data="22733924" class="user-name uRankM">zjldz1970</a>  | 2009-12-14 16:09:47</p>
					<p>有<b><a href="javascript:void(0)" class="voteNum">0</a></b>人认为这个回答不错 | 有<i>0</i>人认为这个回答没有帮助</p>
					<div class="arrowsCon">
						 <span name="whlm" id="whlm">吐血大奉献了<br>总共两个文件，第一个是启动文件，第二个是一个基础面板类，可以运行。已经帮你排好版面了，只是未有添加事件响应，你研究一下自己添加吧<br>package com;<br><br>import com.ren.BasePanel;<br>import javax.swing.*;<br>import java.awt.BorderLayout;<br>import java.awt.Toolkit;<br><br>public class SwingTest extends JFrame {<br> &nbsp; public static void main(String args[]) {<br> &nbsp; &nbsp; &nbsp; new SwingTest();<br> &nbsp; }<br><br> &nbsp; public SwingTest() {<br> &nbsp; &nbsp; &nbsp; super("SwingTextField 测试");<br> &nbsp; &nbsp; &nbsp; init();<br> &nbsp; &nbsp; &nbsp; setup();<br> &nbsp; &nbsp; &nbsp; this.setSize(800, 300);<br> &nbsp; &nbsp; &nbsp; this.setVisible(true);<br> &nbsp; &nbsp; &nbsp; this.setLocation<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ( //定位框架位置<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; (int) (Toolkit.getDefaultToolkit().getScreenSize().<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;getWidth() - 400) / 2,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; (int) (Toolkit.getDefaultToolkit().getScreenSize().<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;getHeight() - 300) / 2<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ); <br> &nbsp; &nbsp; &nbsp; this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<br> &nbsp; }<br><br> &nbsp; BasePanel leftPanel;<br> &nbsp; BasePanel rightPanel;<br> &nbsp; JTextField country = new JTextField(16);<br> &nbsp; JButton search = new JButton("SEARCH");<br> &nbsp; JTextField latitude = new JTextField(40);<br> &nbsp; JTextField currentTime = new JTextField(40);<br> &nbsp; JTextField wind = new JTextField(40);<br> &nbsp; JTextField visibilityField = new JTextField(40);<br> &nbsp; JTextField skycondition = new JTextField(40);<br> &nbsp; JTextField dewpoint = new JTextField(40);<br> &nbsp; JTextField relativehumidity = new JTextField(40);<br> &nbsp; JTextField presure = new JTextField(40);<br><br> &nbsp; public void init() {<br> &nbsp; &nbsp; &nbsp; leftPanel = new BasePanel() {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void initAllComponents() {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void layoutAllComponents() {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addComponent(country, 0, 0, 1, 1, 10, 10);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addComponent(search, 1, 0, 1, 1, 10, 10);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br> &nbsp; &nbsp; &nbsp; };<br><br> &nbsp; &nbsp; &nbsp; rightPanel = new BasePanel() {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void initAllComponents() {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void layoutAllComponents() {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addComponent(latitude, 0, 0, 1, 1, 10, 10);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addComponent(currentTime, 1, 0, 1, 1, 10, 10);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addComponent(wind, 2, 0, 1, 1, 10, 10);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addComponent(visibilityField, 3, 0, 1, 1, 10, 10);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addComponent(skycondition, 4, 0, 1, 1, 10, 10);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addComponent(dewpoint, 5, 0, 1, 1, 10, 10);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addComponent(relativehumidity, 6, 0, 1, 1, 10, 10);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addComponent(presure, 7, 0, 1, 1, 10, 10);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br> &nbsp; &nbsp; &nbsp; };<br> &nbsp; }<br><br> &nbsp; public void setup() {<br> &nbsp; &nbsp; &nbsp; this.setLayout(new BorderLayout());<br> &nbsp; &nbsp; &nbsp; this.add(leftPanel, BorderLayout.WEST);<br> &nbsp; &nbsp; &nbsp; this.add(rightPanel, BorderLayout.EAST);<br> &nbsp; }<br>}<br><br>以下是我以前的经验总结，比较有用的一个类，你可以好好研究一下<br>/**&lt;p&gt;<br>* =============================================================================<br>* &lt;p&gt;Copyright (c) 2008, Ren Java Studio<br>* &lt;p&gt;All rights reserved.&lt;p&gt;<br>* =============================================================================<br>* &lt;p&gt;文件名称：BasePanel.java<br>* &lt;p&gt;文件标识：见配置管理计划书<br>* &lt;p&gt;摘 &nbsp; &nbsp;要：抽象基础面板<br>* @version 2.0<br>* @author Ren<br>* &lt;p&gt;完成日期：2008年5月5日.&lt;p&gt;<br>=============================================================================*/<br>package com.ren;<br><br>import java.awt.*;<br>import javax.swing.*;<br><br>public abstract class BasePanel extends JPanel {<br> &nbsp; /*当前面板的容器*/<br> &nbsp; protected Container container;<br> &nbsp; /*网格布局器*/<br> &nbsp; protected GridBagLayout layout;<br> &nbsp; /*网格布局器的约束器*/<br> &nbsp; protected GridBagConstraints constraints;<br><br> &nbsp; public BasePanel() {<br> &nbsp; &nbsp; &nbsp; container = this;<br> &nbsp; &nbsp; &nbsp; layout = new GridBagLayout();<br> &nbsp; &nbsp; &nbsp; constraints = new GridBagConstraints();<br> &nbsp; &nbsp; &nbsp; container.setLayout(layout);<br> &nbsp; &nbsp; &nbsp; constraints.fill = constraints.BOTH; //在水平方向和垂直方向上同时调整组件大小<br> &nbsp; &nbsp; &nbsp; initAllComponents();<br> &nbsp; &nbsp; &nbsp; layoutAllComponents();<br> &nbsp; }<br><br> &nbsp; /**&lt;p&gt;<br> &nbsp; &nbsp;* =========================================================================<br> &nbsp; &nbsp;* &lt;p&gt;初始化所有GUI组件.&lt;p&gt;<br> &nbsp; &nbsp;=========================================================================*/<br> &nbsp; protected abstract void initAllComponents();<br><br> &nbsp; /**@todo 继承之子类完成所有组件的初始化工作 */<br><br> &nbsp; /**&lt;p&gt;<br> &nbsp; &nbsp;* =========================================================================<br> &nbsp; &nbsp;* &lt;p&gt;布局所有已经初始化了的GUI组件<br> &nbsp; &nbsp;*&lt;p&gt;&lt;blockquote&gt;&lt;pre&gt;<br> &nbsp; &nbsp;* &nbsp; 布局器，约束器必须已经初始化好<br> &nbsp; &nbsp;* &nbsp; 然后再调用布局子函数进行网格布局<br> &nbsp; &nbsp;*&lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;<br> &nbsp; &nbsp;=========================================================================*/<br> &nbsp; protected abstract void layoutAllComponents();<br><br> &nbsp; /**@todo 继承之子类完成组件具体的布局 */<br><br> &nbsp; /**&lt;p&gt;<br> &nbsp; &nbsp;* =========================================================================<br> &nbsp; &nbsp;* &lt;p&gt; 工具函数：用于获取当前屏幕的分辨率<br> &nbsp; &nbsp;* @return Dimension 屏幕大小&lt;p&gt;<br> &nbsp; &nbsp;=========================================================================*/<br> &nbsp; public Dimension getScreenSize() {<br> &nbsp; &nbsp; &nbsp; return Toolkit.getDefaultToolkit().getScreenSize();<br> &nbsp; }<br><br> &nbsp; /**&lt;p&gt;<br> &nbsp; &nbsp;* ==========================================================================<br> &nbsp; &nbsp;* &lt;p&gt; 设置将本程序框架大小并将其定位于屏幕正中心<br> &nbsp; &nbsp;* @param container Container 要设置的容器<br> &nbsp; &nbsp;* @param width 本框架的宽度<br> &nbsp; &nbsp;* @param height 本框架的高度&lt;p&gt;<br> &nbsp; &nbsp;==========================================================================*/<br> &nbsp; protected void putToCenter(Component container, int width, int height) {<br> &nbsp; &nbsp; &nbsp; container.setSize(width, height); //设置大小<br> &nbsp; &nbsp; &nbsp; container.setLocation<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ( //定位框架位置<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; (int) (Toolkit.getDefaultToolkit().getScreenSize().<br> &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp;getWidth() - width) / 2,<br> &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (int) 
(Toolkit.getDefaultToolkit().getScreenSize().<br> &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp;getHeight() - height) / 2<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br> &nbsp; }<br><br> &nbsp; /**&lt;p&gt;<br> &nbsp; &nbsp;* =========================================================================<br> &nbsp; &nbsp;* &lt;P&gt; 获取整个桌面的大小<br> &nbsp; &nbsp;* @return Rectangle 桌面大小.&lt;p&gt;<br> &nbsp; &nbsp;==========================================================================*/<br> &nbsp; public java.awt.Rectangle getDesktopBounds() {<br> &nbsp; &nbsp; &nbsp; GraphicsEnvironment env =<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GraphicsEnvironment.getLocalGraphicsEnvironment();<br> &nbsp; &nbsp; &nbsp; return env.getMaximumWindowBounds();<br> &nbsp; }<br><br> &nbsp; /**&lt;p&gt;<br> &nbsp; &nbsp;* =========================================================================<br> &nbsp; &nbsp;* &lt;p&gt; 设置将本程序框架大小并将其定位于屏幕(X,Y)坐标处宽和高为 width, height<br> &nbsp; &nbsp;* @param container Container 要设置的容器<br> &nbsp; &nbsp;* @param width int &nbsp;宽度<br> &nbsp; &nbsp;* @param height int 高度<br> &nbsp; &nbsp;* @param startX int 放置位置的X坐标<br> &nbsp; &nbsp;* @param startY int 放置位置的Y坐标&lt;p&gt;<br> &nbsp; &nbsp;=========================================================================*/<br> &nbsp; protected void putToPlace(Container container, int width, int height,<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int startX, int startY<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ) {<br> &nbsp; &nbsp; &nbsp; container.setLocation(startX, startY);<br> &nbsp; &nbsp; &nbsp; container.setSize(width, height); //设置大小<br> &nbsp; }<br><br> &nbsp; /**&lt;p&gt;<br> &nbsp; &nbsp;* =========================================================================<br> &nbsp; &nbsp;* &lt;p&gt; 功能强大的工具函数:布局器<br> &nbsp; &nbsp;* &lt;p&gt; 具体功能:<br> &nbsp; &nbsp;* &lt;p&gt; 将 componentToAdd 组件安装到 container 容器中的<br> &nbsp; &nbsp;* &lt;p&gt; 第 row 行， 第 column 列，并在 container 容器中<br> &nbsp; &nbsp;* &lt;p&gt; 占据 height 行，width 列, 在X,Y方向分别可伸展x和y长<br> &nbsp; &nbsp;* &lt;p&gt; 备注：要能如此挑剔的地布局,container 必须预先设定为网格布局器:GridBagLayout,<br> &nbsp; &nbsp;* &lt;p&gt; &nbsp; &nbsp; &nbsp; 然后用 GridBagContstraints 协调布局<br> &nbsp; &nbsp;* &lt;p&gt;原函数来自"Java程序设计教程"第五版 P530页,函数有被我加强功能<br> &nbsp; &nbsp;* @param container &nbsp; Container 要布局的容器<br> &nbsp; &nbsp;* @param layout &nbsp; &nbsp; &nbsp;GridBagLayout 网格布局器<br> &nbsp; &nbsp;* @param constraints GridBagConstraints 约束器<br> &nbsp; &nbsp;* @param componentToAdd Component 要添加的目标组件<br> &nbsp; &nbsp;* @param row &nbsp; &nbsp; &nbsp; &nbsp; 目标组件要添加的行<br> &nbsp; &nbsp;* @param column &nbsp; &nbsp; &nbsp;目标组件要添加的列<br> &nbsp; &nbsp;* @param height &nbsp; &nbsp; &nbsp;目标组件占据的高度<br> &nbsp; &nbsp;* @param width &nbsp; &nbsp; &nbsp; 目标组件占据的宽度<br> &nbsp; &nbsp;* @param x &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 目标组件在水平方向的拉伸能力<br> &nbsp; &nbsp;* @param y &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 目标组件在垂直方向的拉伸能力&lt;p&gt;<br> &nbsp; &nbsp;=========================================================================*/<br> &nbsp; protected void addComponent(<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Container container, GridBagLayout layout,<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GridBagConstraints constraints,<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Component componentToAdd, int row, int column, int height,<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int width, int x, int y) {<br> &nbsp; &nbsp; &nbsp; constraints.gridx = column; //组件所在列<br> &nbsp; &nbsp; &nbsp; constraints.gridy = row; //组件所在行<br><br> &nbsp; &nbsp; &nbsp; constraints.gridwidth = width; //组件宽度<br> &nbsp; &nbsp; &nbsp; constraints.gridheight = height; //组件高度<br><br> &nbsp; &nbsp; &nbsp; constraints.weightx = x; //组件在水平方向的拉伸能力<br> &nbsp; &nbsp; &nbsp; constraints.weighty = y; //组件在垂直方向的拉伸能力<br><br> &nbsp; &nbsp; &nbsp; layout.setConstraints(componentToAdd, constraints); //设置目标组件的约束<br> &nbsp; &nbsp; &nbsp; container.add(componentToAdd); //在容器中添加目标组件<br> &nbsp; }<br><br> &nbsp; /**&lt;p&gt;<br> &nbsp; &nbsp;* =========================================================================<br> &nbsp; &nbsp;* &lt;p&gt; 功能强大的工具函数:布局器<br> &nbsp; &nbsp;* &lt;p&gt; 将指定组件安装到此 Panel 内<br> &nbsp; &nbsp;* @param componentToAdd Component 要添加的目标组件<br> &nbsp; &nbsp;* @param row &nbsp; &nbsp; &nbsp; &nbsp; 目标组件要添加的行<br> &nbsp; &nbsp;* @param column &nbsp; &nbsp; &nbsp;目标组件要添加的列<br> &nbsp; &nbsp;* @param height &nbsp; &nbsp; &nbsp;目标组件占据的高度<br> &nbsp; &nbsp;* @param width &nbsp; &nbsp; &nbsp; 目标组件占据的宽度<br> &nbsp; &nbsp;* @param x &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 目标组件在水平方向的拉伸能力<br> &nbsp; &nbsp;* @param y &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 目标组件在垂直方向的拉伸能力&lt;p&gt;<br> &nbsp; &nbsp;=========================================================================*/<br> &nbsp; protected void addComponent(Component componentToAdd,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int row, int column, int height,<br> 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int width, int xAblility, int 
yAblity) {<br> &nbsp; &nbsp; &nbsp; addComponent(container, layout, constraints, componentToAdd,<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;row, column, height, width, xAblility, yAblity);<br> &nbsp; }<br>}</span> 
					</div>			
					
					<p>
						
					    <a href="javascript:void(0);" class="addCommon" followupid="29ce007bd6e974ee00047aabcbfcf6f9">添加评论(<em>0</em>)</a> 
					    
						
						
					    
					</p>
					<div class="commentBox">
						<div class="topLine"><span>◆</span><span class="s1">◆</span></div>
						<p class="tc">评论读取中....</p>
						<dl class="commentList"></dl>
						 
						<textarea bindcursor="true" name="commentDetail" cols="" rows="">请登录后再发表评论!</textarea>
						<input value="评 论" type="button">
						
					</div>		
				</li>
				
				
			</ul>
			<div class="shareBox">
				<span>分享到：</span>
				<a href="javascript:void(0);" class="toSina" title="分享到新浪微博"></a>
				<a href="javascript:void(0);" class="toTqq" title="分享到腾讯微博" data-richcontent="779
				个人看过这个问题|1个回答|&nbsp;我想让分辨率更改的同时更改窗体的显示效果以..." data-content="如何使窗体自适应分辨率ja..."></a>
				<a href="javascript:void(0);" class="toZone" title="分享到QQ空间"></a>
				<iframe src="29ce007bd6e974ee_files/likenew.xhtml" style="width:170px;height:24px;overflow:hidden;" allowtransparency="true" frameborder="0" scrolling="no">
				</iframe>
			</div>
			
			
						
							
			<div class="toAnswer"><div class="notAnswer"><a href="javascript:void(0);" onclick="MenuUtil.login('社区登录',window.location.hre,window.location.href)" class="loginPost">立即登录，登录后可回答</a></div></div>
				
			<div class="marb30">
				<div class="s1Tit">
					<a href="http://wenda.tianya.cn/search.jsp?q=%E5%A6%82%E4%BD%95%E4%BD%BF%E7%AA%97%E4%BD%93%E8%87%AA%E9%80%82%E5%BA%94%E5%88%86%E8%BE%A8%E7%8E%87java%20swing" class="more" target="_blank">更多</a>
					<b>相似问题</b>
				</div>
				<ul class="question  activityQ">
					
					<li>
						<span class="time">09-09-11</span>
						<h4><a title="新天籁2.0发动机qr20节气门如何自适应值" href="http://wenda.tianya.cn/question/281d193cd4b803eb" id="hover" target="_blank">新天籁2.0发动机qr20节气门如何自适应值</a><em>3</em></h4>						
						
					</li>
					
					<li>
						<span class="time">09-06-11</span>
						<h4><a title="问题是grid如何自适应高宽包括窗口大小改变只有也自动适应高宽" href="http://wenda.tianya.cn/question/4c1570d490a263bd" id="hover" target="_blank">问题是grid如何自适应高宽包括窗口大小改变只有也自动适应高宽</a><em>1</em></h4>						
						
					</li>
					
					<li>
						<span class="time">10-03-30</span>
						<h4><a title="小波变换估计码元速率的门限如何设置?自适应门限最好!" href="http://wenda.tianya.cn/question/2f5881db164c4414" id="hover" target="_blank">小波变换估计码元速率的门限如何设置?自适应门限最好!</a><em>0</em></h4>						
						
					</li>
					
					<li>
						<span class="time">10-07-03</span>
						<h4><a title="自适应旁瓣对消设计应注意的问题" href="http://wenda.tianya.cn/question/00d85057b63ee199" id="hover" target="_blank">自适应旁瓣对消设计应注意的问题</a><em>0</em></h4>						
						
					</li>
					
					<li>
						<span class="time">08-09-10</span>
						<h4><a title="&quot;闲来无悰喜自适&quot;出自哪一首诗词?" href="http://wenda.tianya.cn/question/10f6233a9fa9a7b6" id="hover" target="_blank">"闲来无悰喜自适"出自哪一首诗词?</a><em>1</em></h4>						
						
					</li>
					
				</ul>
			</div>
			<div class="marb30">
				<div class="s1Tit">
					<a href="http://wenda.tianya.cn/activity_list.jsp?tab=spec" class="more" target="_blank">更多</a>
					<b>热点专题</b>
				</div>
				<ul class="question activityQ">
								   
					<li>
						<span class="time">2013-07-02</span>
						<h4><a title="征集生活育儿问答之星" href="http://wenda.tianya.cn/question/17u2ijkjg2jbicph9jfc6bg01t34to6u34gkq" id="hover" target="_blank">征集生活育儿问答之星</a></h4>																				
					</li>
								   
					<li>
						<span class="time">2013-07-25</span>
						<h4><a title="专题：关于创业者素质、创业团队、创业融资、等精彩系列问答有哪些？" href="http://wenda.tianya.cn/question/1807uts10phalbpijf9tgsvicr0bofu3koifa" id="hover" target="_blank">专题：关于创业者素质、创业团队、创业融资、等精彩系列问答有哪些？</a></h4>																				
					</li>
								   
					<li>
						<span class="time">2013-07-23</span>
						<h4><a title="专题：地震离我们有多远？" href="http://wenda.tianya.cn/question/1802v50mg8dbdmn5lj02heepcq2q7f3036i0d" id="hover" target="_blank">专题：地震离我们有多远？</a></h4>																				
					</li>
								   
					<li>
						<span class="time">2013-07-17</span>
						<h4><a title="专题：电影中的旅游胜地" href="http://wenda.tianya.cn/question/17vjciasosral7ikpasv7pr8chvqh3dmv8hf6" id="hover" target="_blank">专题：电影中的旅游胜地</a></h4>																				
					</li>
								   
					<li>
						<span class="time">2013-07-16</span>
						<h4><a title="专题：夏天出行，你准备好了吗" href="http://wenda.tianya.cn/question/17vimeieo8t9rueico3mptqv96mlo4kud6hlo" id="hover" target="_blank">专题：夏天出行，你准备好了吗</a></h4>																				
					</li>
					
				</ul>
			</div>
			<!-- 百度推广 -->
			<div class="adW640">
            	


<script type="text/javascript"> var cpro_id = 'u595010';</script><script src="29ce007bd6e974ee_files/c.js" type="text/javascript"></script><script type="text/javascript" charset="utf-8" src="29ce007bd6e974ee_files/ecom"></script><div style="display:none">-</div> <iframe id="cproIframe1" src="29ce007bd6e974ee_files/uijs.htm" marginwidth="0" marginheight="0" allowtransparency="true" align="center,center" frameborder="0" height="60" scrolling="no" width="640"></iframe>



            </div>
			
		</div>
		<div class="w260 fr">
			<div class="sideBox">
    <div class="search sideSearch">
	   <form action="http://wenda.tianya.cn/search.jsp" target="_blank">
			<input href="javascript:void(0);" class="bingSearchBut" value="搜索" id="bingSearchBut" type="submit">
			<input bindcursor="true" name="q" class="bingSearchKey" autocomplete="off" type="text">
            <input name="form" value="TYNEW1" type="hidden">
		</form>
		<div class="searchAbout"></div>
	</div>
</div>			
			<div class="sideBox sideFocus">								
				<input class="fav " topicid="29ce007bd6e974ee" type="button">			
				<b><a href="javascript:void(0)">0</a></b> 个人收藏
			</div>
			
			<div class="sideBox">
				<div class="sideCon listUserFace">
					
				</div>
			</div>
			
			<div class="sideBox">
				<p>问题被浏览了<b>779</b>次</p>
				<p><a href="javascript:void(0);" id="callFriend">邀请好友回答这个问题</a></p>
			</div>
			
			<div class="sideBox">
				<div class="sideTit">
					<h2>等待你回答</h2>
				</div>
				<div class="sideCon">
					<ul class="list12 arrows">
						
						<li><a href="http://wenda.tianya.cn/question/180ahu22gft94o90so1oioqdfof0snfn30gbt" target="_blank" title="&nbsp;别那么轻率地怀疑？">&amp;nbsp;别那么轻率地怀疑？</a></li>
						
						<li><a href="http://wenda.tianya.cn/question/180cq8s9g99b8ikd5i6nh5vhddq6p47ajojn8" target="_blank" title="怎样收纳各个凌乱的耳机?">怎样收纳各个凌乱的耳机?</a></li>
						
						<li><a href="http://wenda.tianya.cn/question/180cotkg81m908jfvlogoo7nf9ef3b4efagf7" target="_blank" title="我很累却不喊痛，不是我没感觉。">我很累却不喊痛，不是我没感觉。</a></li>
						
						<li><a href="http://wenda.tianya.cn/question/180cmebcofhagh378gvdi986a81hf1akk4jdb" target="_blank" title="名词新解？">名词新解？</a></li>
						
						<li><a href="http://wenda.tianya.cn/question/180aeonsgq6bbp0hp1bn8tivevih8lb3omi1l" target="_blank" title="北京男子当街摔死两岁女童！你觉得该怎么判？">北京男子当街摔死两岁女童！你觉得该怎么判？</a></li>
						
						<li><a href="http://wenda.tianya.cn/question/180cl695gbear9u8chu2cvl25p48rhp4gsjq4" target="_blank" title="谁来保护举报者的权力？谁泄密了举报者的信息？试问苍天：正义何在？公理何在？">谁来保护举报者的权力？谁泄密了举报者的信息？试问苍天：正义何在？公理何在？</a></li>
						
						<li><a href="http://wenda.tianya.cn/question/180cnu8j8so9e9ngifg5g9u1cfs0otcpv6jhg" target="_blank" title="长得好看的人才拥有青春，长的不好看的只有青春期。">长得好看的人才拥有青春，长的不好看的只有青春期。</a></li>
						
						<li><a href="http://wenda.tianya.cn/question/180ck22v076blvifdeu8mgef76frgoebrmidh" target="_blank" title="什么是三姑六婆？">什么是三姑六婆？</a></li>
						
						<li><a href="http://wenda.tianya.cn/question/180ck4j1gee8a1vrjb2435244l14au848iiii" target="_blank" title="什么是三教九流？">什么是三教九流？</a></li>
						
						<li><a href="http://wenda.tianya.cn/question/180cne21gjvas3ptfk4qqcip1qpvsiopl2hk8" target="_blank" title="你知道哪些花卉不能放屋里吗？">你知道哪些花卉不能放屋里吗？</a></li>
						
					</ul>
				</div>
			</div>
			
			<div class="sideBox"><a href="http://wenda.tianya.cn/expert.jsp?activityId=17rn5mn0j04btkv557p4g6om7js3pkijjujl7" target="_blank"><img src="29ce007bd6e974ee_files/150253601.jpg"></a></div>
			
			
			<div class="sideBox"><a href="http://wenda.tianya.cn/question/17vjciasosral7ikpasv7pr8chvqh3dmv8hf6" target="_blank"><img src="29ce007bd6e974ee_files/150271923.jpg"></a></div>
			
			
			<div class="sideBox"> 
			<script type="text/javascript">
				/*250*250，创建于2013-7-15（问答）*/
				var cpro_id = "u1320429";
			</script>
			<script src="29ce007bd6e974ee_files/c_002.js" type="text/javascript"></script><script type="text/javascript" charset="utf-8" src="29ce007bd6e974ee_files/ecom_002"></script><div style="display:none">-</div> <iframe id="cproIframe2" src="29ce007bd6e974ee_files/uijs_002.htm" marginwidth="0" marginheight="0" allowtransparency="true" align="center,center" frameborder="0" height="250" scrolling="no" width="250"></iframe>
			</div>				
			
		</div>
	</div>	
	<!--bagin footer-->
    <div id="foot_view">
	<script type="text/javascript" charset="GBK" src="29ce007bd6e974ee_files/tianya_footer1.js"></script><style type="text/css"><!--.foot {border-top:4px solid #eee;padding-top:6px;margin-top:10px}.foot p {text-align:center;margin:3px;font-size:12px;color:#555;font-family: Arial}.foot p a:link,.foot p a:visited ,.foot p a:hover {color:#2965b1;font-size:12px;margin:0px 4px}--></style><div class="foot"><p><a href="http://help.tianya.cn/about/about.html" target="_blank">关于天涯</a> | <a href="http://help.tianya.cn/about/service.html" target="_blank">广告服务</a> | <a href="http://open.tianya.cn/" target="_blank">开放平台</a> | <a href="http://service.tianya.cn/" target="_blank">天涯客服</a> | <a href="http://help.tianya.cn/about/ystl.html" target="_blank">隐私和版权</a> | <a href="http://help.tianya.cn/about/contact.html" target="_blank">联系我们</a> | <a href="http://join.tianya.cn/" target="_blank">加入天涯</a> | <a href="http://www.tianya.cn/mobile/" target="_blank">手机版</a> | <a href="http://service.tianya.cn/alarm/jbts.do" target="_blank">举报投诉</a></p><p> © 1999 - 2013天涯社区</p></div>

</div>
<div id="scroll_top" class="scroll_top" style="display: block; top: 5511px;">
    <a href="javascript:void(0)" class="goTop" title="回到顶部"></a>
    <a href="http://wenda.tianya.cn/question/16h32a9koq0bu1pkorthbe0oc6e85b2k1kjf4" target="_blank" class="helpLink">意见反馈</a>
    <a href="http://wenda.tianya.cn/help/" target="_blank" class="helpLink">帮助</a>
</div>

    <!--end footer-->	
</div>
<form id="subShareMenu" method="post" action="http://fx.tianya.cn/third/post.do">
<input name="lat" value="0.0" type="hidden">
<input name="long" value="0.0" type="hidden">
<input name="forwardURL" id="forwardURL" value="" type="hidden"><!--跳转地址-->
<input name="flag" id="flag" value="" type="hidden"><!--第三方网站名称-->
<input name="status" id="status" value="test" type="hidden"><!--分享的内容-->
</form>
<form method="post" action="/thread?tid=29ce007bd6e974ee" name="chooseBestAnswer" id="chooseBestAnswer">
	 <input name="Action.followup.submit" value="1" type="hidden">  
	 <input id="bestFollowupId" name="bestFollowupId" value="" type="hidden">                                     
</form>

<script type="text/javascript">
	TYWenda.initPage.finalShow(TYWenda);
	TYWenda.wendaEdit.editInit('#upcontent');
</script><dl id="wendaEditBig" class="wendaEdit fullScreen" style="display:none;"><dt><a class="setStrong" href="javascript:void(0)"></a><a class="setList" href="javascript:void(0)"></a><a class="atFriend friend" href="javascript:void(0)"></a><a class="insertPic photo" href="javascript:void(0)"></a><a class="insertvideo video" href="javascript:void(0)"></a><a class="setWin winBig" href="javascript:void(0)"></a></dt><dd><textarea bindcursor="true" id="editBigText" class="textarea"></textarea></dd><dl></dl></dl>



<div style="width: 0px; height: 0px;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="TYFC1" align="middle" height="0" width="0"><param name="allowScriptAccess" value="always"><param name="allowNetworking" value="all"><param name="movie" value="http://static.tianya.cn/js/2010/cookie.swf"><param name="quality" value="high"><param name="bgcolor" value="#ffffff"><embed src="29ce007bd6e974ee_files/cookie.swf" quality="high" bgcolor="#ffffff" id="TYFC2" allowscriptaccess="always" allownetworking="all" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" height="0" width="0"></object></div></body></html>